package com.jiazhong.boot.mybatis.plus.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiazhong.boot.commons.bean.plus.Emp;
import com.jiazhong.boot.commons.util.JsonResult;
import com.jiazhong.boot.commons.util.ResultTool;
import com.jiazhong.boot.mybatis.plus.mapper.EmpMapper;
import com.jiazhong.boot.mybatis.plus.service.EmpService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements EmpService {
    @Resource
    private EmpMapper mapper;

    @Override
    public JsonResult find() {
        // List<Emp> list = mapper.find();
        List<Emp> list = getBaseMapper().find();
        return ResultTool.success(list);
    }
}
